package org.cryptocoinpartners.schema;

import javax.persistence.Entity;
import javax.persistence.Transient;

import org.cryptocoinpartners.schema.dao.Dao;

/**
 * An Authorization represents an approval or signing of a secured action like a reconciliation Adjustment.
 * 
 * @author Tim Olson
 */
@Entity
public class Authorization extends EntityBase {

  public Authorization(String notes) {
    this.notes = notes;
  }

  public String getNotes() {
    return notes;
  }

  // todo add a signature or something

  // JPA
  protected Authorization() {
  }

  protected void setNotes(String notes) {
    this.notes = notes;
  }

  private String notes;

  @Override
  public void persit() {
    // TODO Auto-generated method stub

  }

  @Override
  public void detach() {
    // TODO Auto-generated method stub

  }

  @Override
  public void merge() {
    // TODO Auto-generated method stub

  }

  @Override
  @Transient
  public Dao getDao() {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  @Transient
  public void setDao(Dao dao) {
    // TODO Auto-generated method stub
    //  return null;
  }

  @Override
  public void delete() {
    // TODO Auto-generated method stub

  }

  @Override
  public EntityBase refresh() {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  public void prePersist() {
    // TODO Auto-generated method stub

  }

  @Override
  public void postPersist() {
    // TODO Auto-generated method stub

  }

  @Override
  @Transient
  public EntityBase getParent() {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  public void persitParents() {
    // TODO Auto-generated method stub

  }

}
